/*
 *  Copyright (c) 2022 ZhuHai Jieli Technology Co.,Ltd.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

/*********************************************************************************************
    *   Filename        : audio_interface.h

    *   Description     :

    *   Author          : Bingquan

    *   Email           : bingquan_cai@zh-jieli.com

    *   Last modifiled  : 2018-05-05 09:40

    *   Copyright:(c)JIELI  2011-2017  @ , All Rights Reserved.
*********************************************************************************************/
#ifndef _ADAPTER_AUDIO_INTERFACE_H_
#define _ADAPTER_AUDIO_INTERFACE_H_

#include "typedef.h"

typedef enum {
    AUDIO_INPUT = 0,
    AUDIO_OUTPUT,
} AUDIO_TYPE;

void audio_init(void);

void audio_open_stream(AUDIO_TYPE type, u32 samplerate, void (*callback)(void *buffer, int size));

void audio_start_stream(void);

void audio_stop_stream(void);

#endif
